package com.androidx.p013lv.mine.databinding;

import android.graphics.drawable.Drawable;
import android.util.SparseIntArray;
import android.view.View;
import android.widget.EditText;
import android.widget.ImageView;
import android.widget.LinearLayout;
import android.widget.TextView;
import androidx.appcompat.widget.Toolbar;
import androidx.databinding.DataBindingComponent;
import androidx.databinding.ViewDataBinding;
import androidx.databinding.adapters.TextViewBindingAdapter;
import androidx.databinding.adapters.ViewBindingAdapter;
import com.androidx.p013lv.mine.C1206BR;
import com.androidx.p013lv.mine.C1207R;
import com.androidx.p013lv.mine.activity.LoginActivity;
import com.androidx.p013lv.mine.bean.MobileAction;
import com.androidx.p013lv.mine.generated.callback.OnClickListener;

/* renamed from: com.androidx.lv.mine.databinding.ActivityLoginLayoutBindingImpl */
public class ActivityLoginLayoutBindingImpl extends ActivityLoginLayoutBinding implements OnClickListener.Listener {
    private static final ViewDataBinding.IncludedLayouts sIncludes = null;
    private static final SparseIntArray sViewsWithIds;
    private final View.OnClickListener mCallback31;
    private final View.OnClickListener mCallback32;
    private final View.OnClickListener mCallback33;
    private final View.OnClickListener mCallback34;
    private long mDirtyFlags;
    private final LinearLayout mboundView0;
    private final ImageView mboundView1;
    private final TextView mboundView2;
    private final ImageView mboundView3;
    private final TextView mboundView4;

    static {
        SparseIntArray sparseIntArray = new SparseIntArray();
        sViewsWithIds = sparseIntArray;
        sparseIntArray.put(C1207R.C1210id.toolbar, 6);
        sViewsWithIds.put(C1207R.C1210id.ed_area_code, 7);
        sViewsWithIds.put(C1207R.C1210id.ed_login_input_phone, 8);
        sViewsWithIds.put(C1207R.C1210id.ed_login_input_code, 9);
    }

    public ActivityLoginLayoutBindingImpl(DataBindingComponent dataBindingComponent, View view) {
        this(dataBindingComponent, view, mapBindings(dataBindingComponent, view, 10, sIncludes, sViewsWithIds));
    }

    private ActivityLoginLayoutBindingImpl(DataBindingComponent dataBindingComponent, View view, Object[] objArr) {
        super(dataBindingComponent, view, 1, (TextView) objArr[5], (EditText) objArr[7], (EditText) objArr[9], (EditText) objArr[8], (Toolbar) objArr[6]);
        this.mDirtyFlags = -1;
        this.btLoginCommit.setTag(null);
        LinearLayout linearLayout = (LinearLayout) objArr[0];
        this.mboundView0 = linearLayout;
        linearLayout.setTag(null);
        ImageView imageView = (ImageView) objArr[1];
        this.mboundView1 = imageView;
        imageView.setTag(null);
        TextView textView = (TextView) objArr[2];
        this.mboundView2 = textView;
        textView.setTag(null);
        ImageView imageView2 = (ImageView) objArr[3];
        this.mboundView3 = imageView2;
        imageView2.setTag(null);
        TextView textView2 = (TextView) objArr[4];
        this.mboundView4 = textView2;
        textView2.setTag(null);
        setRootTag(view);
        this.mCallback33 = new OnClickListener(this, 3);
        this.mCallback34 = new OnClickListener(this, 4);
        this.mCallback32 = new OnClickListener(this, 2);
        this.mCallback31 = new OnClickListener(this, 1);
        invalidateAll();
    }

    @Override // androidx.databinding.ViewDataBinding
    public void invalidateAll() {
        synchronized (this) {
            this.mDirtyFlags = 32;
        }
        requestRebind();
    }

    @Override // androidx.databinding.ViewDataBinding
    public boolean hasPendingBindings() {
        synchronized (this) {
            if (this.mDirtyFlags != 0) {
                return true;
            }
            return false;
        }
    }

    @Override // androidx.databinding.ViewDataBinding
    public boolean setVariable(int i, Object obj) {
        if (C1206BR.status == i) {
            setStatus((Integer) obj);
        } else if (C1206BR.btnStatus == i) {
            setBtnStatus((Integer) obj);
        } else if (C1206BR.action == i) {
            setAction((MobileAction) obj);
        } else if (C1206BR.click == i) {
            setClick((LoginActivity.OnClick) obj);
        } else if (C1206BR.codeStatusTxt != i) {
            return false;
        } else {
            setCodeStatusTxt((String) obj);
        }
        return true;
    }

    @Override // com.androidx.p013lv.mine.databinding.ActivityLoginLayoutBinding
    public void setStatus(Integer num) {
        this.mStatus = num;
        synchronized (this) {
            this.mDirtyFlags |= 2;
        }
        notifyPropertyChanged(C1206BR.status);
        super.requestRebind();
    }

    @Override // com.androidx.p013lv.mine.databinding.ActivityLoginLayoutBinding
    public void setBtnStatus(Integer num) {
        this.mBtnStatus = num;
        synchronized (this) {
            this.mDirtyFlags |= 4;
        }
        notifyPropertyChanged(C1206BR.btnStatus);
        super.requestRebind();
    }

    @Override // com.androidx.p013lv.mine.databinding.ActivityLoginLayoutBinding
    public void setAction(MobileAction mobileAction) {
        updateRegistration(0, mobileAction);
        this.mAction = mobileAction;
        synchronized (this) {
            this.mDirtyFlags |= 1;
        }
        notifyPropertyChanged(C1206BR.action);
        super.requestRebind();
    }

    @Override // com.androidx.p013lv.mine.databinding.ActivityLoginLayoutBinding
    public void setClick(LoginActivity.OnClick onClick) {
        this.mClick = onClick;
        synchronized (this) {
            this.mDirtyFlags |= 8;
        }
        notifyPropertyChanged(C1206BR.click);
        super.requestRebind();
    }

    @Override // com.androidx.p013lv.mine.databinding.ActivityLoginLayoutBinding
    public void setCodeStatusTxt(String str) {
        this.mCodeStatusTxt = str;
        synchronized (this) {
            this.mDirtyFlags |= 16;
        }
        notifyPropertyChanged(C1206BR.codeStatusTxt);
        super.requestRebind();
    }

    /* access modifiers changed from: protected */
    @Override // androidx.databinding.ViewDataBinding
    public boolean onFieldChange(int i, Object obj, int i2) {
        if (i != 0) {
            return false;
        }
        return onChangeAction((MobileAction) obj, i2);
    }

    private boolean onChangeAction(MobileAction mobileAction, int i) {
        if (i != C1206BR._all) {
            return false;
        }
        synchronized (this) {
            this.mDirtyFlags |= 1;
        }
        return true;
    }

    /* access modifiers changed from: protected */
    @Override // androidx.databinding.ViewDataBinding
    public void executeBindings() {
        long j;
        Drawable drawable;
        String str;
        String str2;
        long j2;
        long j3;
        synchronized (this) {
            j = this.mDirtyFlags;
            this.mDirtyFlags = 0;
        }
        Integer num = this.mStatus;
        Integer num2 = this.mBtnStatus;
        MobileAction mobileAction = this.mAction;
        LoginActivity.OnClick onClick = this.mClick;
        String str3 = this.mCodeStatusTxt;
        int i = 0;
        int safeUnbox = (j & 34) != 0 ? ViewDataBinding.safeUnbox(num) : 0;
        long j4 = j & 36;
        if (j4 != 0) {
            boolean z = ViewDataBinding.safeUnbox(num2) == 0;
            if (j4 != 0) {
                if (z) {
                    j3 = j | 128;
                    j2 = 512;
                } else {
                    j3 = j | 64;
                    j2 = 256;
                }
                j = j3 | j2;
            }
            drawable = getDrawableFromResource(this.btLoginCommit, z ? C1207R.C1209drawable.base_ic_btn_main_white : C1207R.C1209drawable.base_ic_btn_main);
            if (z) {
                i = 8;
            }
        } else {
            drawable = null;
        }
        long j5 = j & 33;
        if (j5 == 0 || mobileAction == null) {
            str2 = null;
            str = null;
        } else {
            String desTitle = mobileAction.getDesTitle();
            str2 = mobileAction.getDes();
            str = desTitle;
        }
        long j6 = 48 & j;
        if ((36 & j) != 0) {
            ViewBindingAdapter.setBackground(this.btLoginCommit, drawable);
            this.mboundView3.setVisibility(i);
        }
        if ((32 & j) != 0) {
            this.btLoginCommit.setOnClickListener(this.mCallback34);
            this.mboundView1.setOnClickListener(this.mCallback31);
            this.mboundView3.setOnClickListener(this.mCallback32);
            this.mboundView4.setOnClickListener(this.mCallback33);
        }
        if (j5 != 0) {
            TextViewBindingAdapter.setText(this.btLoginCommit, str2);
            TextViewBindingAdapter.setText(this.mboundView2, str);
        }
        if (j6 != 0) {
            TextViewBindingAdapter.setText(this.mboundView4, str3);
        }
        if ((j & 34) != 0) {
            LoginActivity.sendCodeStatus(this.mboundView4, safeUnbox);
        }
    }

    @Override // com.androidx.p013lv.mine.generated.callback.OnClickListener.Listener
    public final void _internalCallbackOnClick(int i, View view) {
        boolean z = false;
        if (i == 1) {
            LoginActivity.OnClick onClick = this.mClick;
            if (onClick != null) {
                z = true;
            }
            if (z) {
                onClick.btnBack();
            }
        } else if (i == 2) {
            LoginActivity.OnClick onClick2 = this.mClick;
            if (onClick2 != null) {
                z = true;
            }
            if (z) {
                onClick2.clearPhone();
            }
        } else if (i == 3) {
            LoginActivity.OnClick onClick3 = this.mClick;
            if (onClick3 != null) {
                z = true;
            }
            if (z) {
                onClick3.requestCode();
            }
        } else if (i == 4) {
            LoginActivity.OnClick onClick4 = this.mClick;
            if (onClick4 != null) {
                z = true;
            }
            if (z) {
                onClick4.btnCommit();
            }
        }
    }
}
